<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Magic Admin Panel</title>
<link rel="stylesheet" type="text/css" href="<?php echo MAGIC_CSS_PATH;?>binary.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo MAGIC_CSS_PATH;?>stylesheet.css"/>
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="../../style/Stylesheetie8.css"/>
<![endif]-->
<script src="<?php echo MAGIC_JS_PATH;?>jquery.min.js" type="text/javascript"></script>
<script src="<?php echo MAGIC_JS_PATH;?>jquery.validate.pack.js" type="text/javascript"></script>

<link rel="stylesheet" type="text/css" href="<?php echo MAGIC_CSS_PATH;?>validate.css" />
</head>
<script>
$(document).ready(function(){
	Login_Validation=function () {
		var j=0;
		var field=new Array("user_name","user_password");
		var val;
		var username=$("#user_name").attr("value");
		var password=$("#user_password").attr("value")
		for(var i=0;i<2;i++) {
			val=($("#"+field[i]+"").attr("value"));
			if(val==""){
				$("#"+field[i]+"").addClass('login_error');
			} else if ( val !='') {
				$("#"+field[i]+"").removeClass('login_error');
				j++;
			}
		}
		if(j == 2) {
			$.ajax({
				type:"POST",
				url:"<?php echo SITE_URL."login/login/index"; ?>",
				data:"act=login&user_name="+username+"&user_password="+password,
				success: function(msg){
                                    eval(msg);
				}
			});
		} else {
			return false;
		}
	}
	$(window).keypress(function(e) {
		if(e.keyCode == 13) {
			Login_Validation();
		}
	});
});
	
</script>

<body>
<!--===========top content===========================-->
<div id="topheader">
  <div id="inn-logo"><img src="<?php echo MAGIC_HTTP_IMAGE_PATH ;?>" alt="Magic" border="0"/></div>
  <!-- inn-logo -->
  
  <!-- inn-top-nav -->
  <div class="height10"></div>
  
</div>
<!-- #topheader-->
<!--===========top content===========================-->
<div id="main_nav"></div>
	<div id="InnerPageDetails">
 